.class final Lcom/waiqin365/lightapp/chexiao/d/b;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/chexiao/d/d;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/chexiao/d/d;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/d/b;Lcom/waiqin365/lightapp/chexiao/d/d;Lcom/waiqin365/lightapp/chexiao/b/a/am;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/chexiao/d/b;->a(Lcom/waiqin365/lightapp/chexiao/d/d;Lcom/waiqin365/lightapp/chexiao/b/a/am;)V

    return-void
.end method

.method private a(Lcom/waiqin365/lightapp/chexiao/d/d;Lcom/waiqin365/lightapp/chexiao/b/a/am;)V
    .locals 2

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v0

    iget-object v1, p2, Lcom/waiqin365/lightapp/chexiao/b/a/am;->f:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Ljava/util/List;)Z

    move-result v0

    if-eqz v0, :cond_1

    if-eqz p1, :cond_0

    invoke-interface {p1}, Lcom/waiqin365/lightapp/chexiao/d/d;->b()V

    invoke-interface {p1}, Lcom/waiqin365/lightapp/chexiao/d/d;->c()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-eqz p1, :cond_0

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    const v1, 0x7f08050d

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/waiqin365/lightapp/chexiao/d/d;->a(Ljava/lang/String;)V

    invoke-interface {p1}, Lcom/waiqin365/lightapp/chexiao/d/d;->c()V

    goto :goto_0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v3, 0x0

    const/4 v4, 0x1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/b/a/am;

    iget-object v1, v0, Lcom/waiqin365/lightapp/chexiao/b/a/am;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    const v2, 0x7f08013b

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/b/a/am;->b()Z

    move-result v2

    if-eqz v2, :cond_6

    const-string/jumbo v2, "1"

    iget-object v5, v0, Lcom/waiqin365/lightapp/chexiao/b/a/am;->b:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    move v2, v3

    :goto_0
    iget-object v1, v0, Lcom/waiqin365/lightapp/chexiao/b/a/am;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v2, v1, :cond_2

    new-instance v5, Lcom/waiqin365/lightapp/product/d/j;

    invoke-direct {v5}, Lcom/waiqin365/lightapp/product/d/j;-><init>()V

    iget-object v1, v0, Lcom/waiqin365/lightapp/chexiao/b/a/am;->f:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/product/d/f;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v5, Lcom/waiqin365/lightapp/product/d/j;->a:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/waiqin365/base/db/offlinedata/w;->b(Lcom/waiqin365/lightapp/product/d/j;)Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_4

    :cond_1
    move v3, v4

    :cond_2
    if-eqz v3, :cond_5

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    new-instance v2, Lcom/waiqin365/lightapp/chexiao/d/c;

    invoke-direct {v2, p0, v0}, Lcom/waiqin365/lightapp/chexiao/d/c;-><init>(Lcom/waiqin365/lightapp/chexiao/d/b;Lcom/waiqin365/lightapp/chexiao/b/a/am;)V

    invoke-static {v1, v4, v4, v2}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    :cond_3
    :goto_1
    return-void

    :cond_4
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_0

    :cond_5
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    invoke-direct {p0, v1, v0}, Lcom/waiqin365/lightapp/chexiao/d/b;->a(Lcom/waiqin365/lightapp/chexiao/d/d;Lcom/waiqin365/lightapp/chexiao/b/a/am;)V

    goto :goto_1

    :cond_6
    const-string/jumbo v2, "2"

    iget-object v0, v0, Lcom/waiqin365/lightapp/chexiao/b/a/am;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/chexiao/d/d;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/chexiao/d/d;->c()V

    goto :goto_1

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/chexiao/d/d;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/d/b;->a:Lcom/waiqin365/lightapp/chexiao/d/d;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/chexiao/d/d;->c()V

    goto :goto_1
.end method
